﻿@{
    Layout = "~/Views/Shared/_Main.cshtml";
}
<div class="container">
    <div class="row">
        <div class="span9">
            <!-- navagation -->
            <ul class="breadcrumb">
                <li><a href="/">首页</a> <span class="divider">/</span></li>
                <li class="active">重置密码</li>
            </ul>
            <fieldset>
                <legend>重置密码</legend>
                <form id="newpwdform" method="post" action="/account/setnewpassword" class="form-horizontal">
                <input type="hidden" name="u" value="@VirtualPress.Tool.Framework.AesAlgorithm.Encrypt(ViewBag.User)" />
                <div class="row-fluid">
                    @if (ViewBag.Error == null)
                    { 
                        <div class="span6 alert span offset2" style="display:none;" id="errormsg">
                            
                        </div>
                    }
                    else
                    { 
                        <div class="span6 alert span offset2" id="errormsg">
                            @ViewBag.Error
                        </div> 
                    }
                    </div>
                <div class="control-group">
                    <label class="control-label" for="iptPassword">
                        重置密码</label>
                    <div class="controls">
                        <input type="password" id="iptPassword" name="Password" placeholder="密码长度6-20位" 
                        av="{x:':\\w{6,12}',t:'errormsg',m:'密码6-12位', a:'show'}" 
                        class="span3">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="iptPasswordAgain">
                        确认密码</label>
                    <div class="controls">
                        <input type="password" id="iptPasswordAgain" name="Confirm" placeholder="请确保两次输入一致" 
                         av="{x:'=iptPassword',t:'errormsg',m:'两次输入不一致', a:'show'}" 
                        class="span3">
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="row">
                            <input type="submit" class="btn btn-primary btn-large span2" style="margin-top: 15px;"
                                value="重置密码" />
                        </div>
                    </div>
                </div>
                </form>
            </fieldset>
        </div>
        <div class="span3">
            <div class="mini-layout" style="height: 500px;">
                <div class="hspace15">
                </div>
                <div style="text-align: center;">
                    <a class="btn btn-primary btn-large" style="width: 73%">我要投稿</a>
                </div>
                <div class="hspace10">
                </div>
                <div style="text-align: center;">
                    <a class="btn btn-large btn-danger" style="width: 73%">我要审稿</a>
                </div>
                <div class="hspace15">
                </div>
                <div style="text-align: center;">
                    <a class="btn btn-large" style="width: 73%">成为编委</a>
                </div>
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                <div style="text-align: center;">
                    <div class="well">
                        <code>本刊下载量：<a>876</a></code>
                        <div class="hspace10">
                        </div>
                        <code>本刊访问量：<a>2234</a></code>
                    </div>
                </div>
                <div class="friendlinktop">
                    相关期刊
                    <hr class="flline" />
                </div>
                <div class="flinks">
                    <ul>
                        <li><a href="#">教育进展</a></li>
                        <li><a href="#">留学与移</a></li>
                        <li><a href="#">职业教育</a></li>
                        <li><a href="#">哲学进展</a></li>
                        <li><a href="#">社会科学前沿</a></li>
                        <li><a href="#">艺术研究快报</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
@section tail{  
    <script type="text/javascript" src="/Scripts/bootstrap-datetimepicker.min.js"></script>

    <script type="text/javascript">
        $(function () {
            new plug.AValidator().BuildValidate('newpwdform');
        });
    </script>
}